package com.springinaction.ch03.autoSet;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import static org.junit.Assert.*;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = DesertConfig.class)
public class DesertAutoTest {

    @Autowired
    @Qualifier("cold")
    @ice
    private Desert desert;

    @Test
    public void desertNotNullTest(){
        assertNotNull(desert);
    }

}
